package com.cy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootApplication
public class SpringSecurityTest {
    public static void main(String[] args) {
        SpringApplication.run(SpringSecurityTest.class, args);
        //encodePwd();
    }

    static void encodePwd() {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String password = "123456";
        String newPwd = encoder.encode(password);
        System.out.println(newPwd);//$2a$10$Wf5RYxaoF/LbtykgiG/yK.Ozv107xXKQonDzBk3ZPHKYYMWmQEv1C


    }
}
